/**
 * article模块接口列表
 */
import base from "./base"; // 导入接口域名列表
import axios from "../network/http"; // 导入http中创建的axios实例

const grass = {
  
  //   添加种草数据
  AddGrass(data) {
    return axios.post(`${base.sq2}/app/article/add`, data);
  },

  UploadImg(data) {
    return axios.post(`${base.sq2}/app/article/upload`, data, {
        headers: {
            "Content-Type": "multipart/form-data",
            // token: window.sessionStorage.getItem("appToken"),
        }
    }
    )
  },

  // 分页查询
  PageGrass(params) {
    return axios.get(`${base.sq2}/app/article/page`,{
        params:params,
      })
  }
  
};
export default grass;
